package com.hmall.mapper;

import com.hmall.model.ShopAttr;
import com.hmall.util.MyMapper;
import com.hmall.vo.shopAttrVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShopAttrMapper extends MyMapper<ShopAttr> {
    ShopAttr selectAttr(@Param("attrId") Integer attrId);

    List<ShopAttr> selectRepeatData(@Param("attrName") String attrName,@Param("categoryId") Integer categoryId);

    List<ShopAttr> selectExceptSelfRepeatData(@Param("attrName") String attrName,@Param("categoryId") Integer categoryId,@Param("attrId") Integer attrId);

    List<ShopAttr> selectByCategory(@Param("categoryId") Integer categoryId);

}